package top.infopub.mgr.bpa.dao;

import com.github.pagehelper.Page;
import org.springframework.stereotype.Repository;
import top.infopub.generic.GenericDao;
import top.infopub.mgr.bpa.domain.DeviceSuppleDomain;
import top.infopub.mgr.bpa.vo.DeviceSuppleVo;
import top.infopub.model.bpa.Basic;
import top.infopub.model.bpa.DeviceSupple;

import java.util.List;
import java.util.Map;

/** 设备合同--补充协议（BPA_DEVICE_SUPPLE） **/
@Repository
public interface DeviceSuppleDao extends GenericDao<DeviceSupple, String> {

    /**
     * 根据条件查询分页数据
     * @param deviceSuppleVo
     * @return 
     * @see
     */
    Page<DeviceSuppleDomain> selectByDomainWhere(DeviceSuppleVo deviceSuppleVo);

    DeviceSupple findById(String id);

    List<Map<String, String>> projectDropDownBox();

    Basic findByProCode(String proCode);

    void insertDeviceSupple(DeviceSupple deviceSupple);

    void updateDeviceSupple(DeviceSupple deviceSupple);
}